% vim: ts=4 sw=4 et ft=erlang
{application, sync, [
    {description, "Sync - Automatic Code Reloader"},
    {applications, [kernel, stdlib, syntax_tools, compiler]},
    {vsn, "0.5.0"},
    {registered, []},
    {mod, { sync, []}},
    {licenses, ["MIT"]},
    {links, [{"Github", "https://github.com/rustyio/sync"}]},
    {applications, [
        kernel,
        stdlib,
        fs
    ]},
    {env, [
        {discover_modules_interval,  10000},
        {discover_src_dirs_interval, 10000},
        {discover_src_files_interval, 5000},
        {compare_beams_interval, 2000},
        {compare_src_files_interval, 1000},

        %% http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html#File-Variables
        {file_variables, "-*- mode: compilation; mode: auto-revert; buffer-read-only: true; auto-revert-interval: 0.5 -*-\n\n"},

        %% Temp file to write output messages.
        {out_file, "/tmp/sync.out"},

        %% List of modules to be excluded from scanning. While using rebar
        %% it's not very useful to specify the excludes here as every
        %% get/update-deps will override the settings. Instead specify
        %% excluded stuff in the node's config file.
        {excluded_modules, []}
    ]}
]}.
